// let arr =[1,2,3,4]

// arr.map((item)=>{
//     return item*2
// })

var person=[{name:'liang',age:'18'},{name:'qiang',age:'19'}]
// var pname = person.map((item)=>{
//     return item.name
// })


var prop = curry(function(key,obj){
    return obj[key]
})
var pname = person.map(prop('name'))
var page = person.map(prop('age'))
console.log(pname);